@Service
public class UserServiceImpl implements  UserService {
    @Autowaired
    UserMapper userMapper;
    @Override
    public  void  add(String name){
        userMapper.add(name);
    }
    @Override
    public  void delete(Integer id){
        userMapper.delete(id);
    }

    @Override
    public  void update(Integer id){
        userMapper.update(id);
    }

    @Override
    public  User query(Integer id){
        User user = new User();
        userMapper.query(id);
        return  user;

    }
}
